package Vista;

import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;

import javax.swing.WindowConstants;
import javax.swing.table.AbstractTableModel;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;
import javax.swing.SwingUtilities;

/**
 * This code was edited or generated using CloudGarden's Jigloo SWT/Swing GUI
 * Builder, which is free for non-commercial use. If Jigloo is being used
 * commercially (ie, by a corporation, company or business for any purpose
 * whatever) then you should purchase a license for each developer using Jigloo.
 * Please visit www.cloudgarden.com for details. Use of Jigloo implies
 * acceptance of these licensing terms. A COMMERCIAL LICENSE HAS NOT BEEN
 * PURCHASED FOR THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED LEGALLY FOR
 * ANY CORPORATE OR COMMERCIAL PURPOSE.
 */
public class VistaClasificacion extends javax.swing.JFrame {
	private JPanel JPanel;
	private JTable tablaCalendario;
	private JLabel lblCalendario;
	private JScrollPane ScrollCalendario;

	/**
	 * Auto-generated main method to display this JFrame
	 */

	public VistaClasificacion() {
		super();
		initGUI();
	}

	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			{
				JPanel = new JPanel();
				getContentPane().add(JPanel);
				JPanel.setBounds(0, 0, 606, 289);
				JPanel.setLayout(null);
				{
					ScrollCalendario = new JScrollPane();
					JPanel.add(ScrollCalendario);
					ScrollCalendario.setBounds(46, 46, 495, 223);
					{
						/*
						 * TableModel tablaCalendarioModel = new
						 * DefaultTableModel( new String[][] { { "One", "Two" },
						 * { "Three", "Four" } }, new String[] { "Column 1",
						 * "Column 2" });
						 */
						tablaCalendario = new JTable();
						ScrollCalendario.setViewportView(tablaCalendario);

					}
				}
				{
					lblCalendario = new JLabel();
					JPanel.add(lblCalendario);
					lblCalendario.setText("Tabla de clasificacion");
					lblCalendario.setBounds(225, 12, 159, 28);
					lblCalendario.setFont(new java.awt.Font("Tahoma", 0, 12));
				}
			}
			pack();
			this.setSize(622, 327);
		} catch (Exception e) {
			// add your error handling code here
			e.printStackTrace();
		}
	}

	public void setListado(AbstractTableModel abstractTableModel) {
		tablaCalendario.setModel(abstractTableModel);
	}

	public void mostrarMensaje(String mensaje) {
		JOptionPane.showMessageDialog(this, mensaje);
	}

}
